/*
 * 头部模块
 * @Author: Chenliang(930225)
 * @Date: 2019-10-11 14:38:13
 * @LastEditors  : Chenliang(930225)
 * @LastEditTime : 2020-01-19 11:11:05
 */
import React, { Component } from 'react';
import Link from 'umi/link';
class Header extends Component {
    constructor(props) {
        super(props);
        this.state = {};
    }
    render() {
        return (
            <div className="header">
                <h1 className="logo">
                    <Link to="/">中国好老师</Link>
                </h1>
                <div className="content">
                    <div className="user" >
                        <div className="user-wrap">
                            <span className="avatar">
                                <img
                                    className="img"
                                    src={
                                        'http://cdncs.101.com/v0.1/static/cscommon/avatar/930225/930225.jpg?size=80&defaultImage=1'
                                    }
                                    alt="陈亮"
                                />
                            </span>
                            <span className="name">陈亮</span>
                        </div>
                    </div>
                </div>
            </div>
        );
    }
}

export default Header;
